package org.inspursc.s0517.health.evaluation.dao;

import org.inspursc.s0517.health.evaluation.entity.QuestionCategory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author B_Dream
 * @date 2018/5/22 15:51
 */
public interface QuestionCategoryDao extends JpaRepository<QuestionCategory, Integer> {


    /**
     * 根据父ID查找
     * @param id
     * @return
     */
    List<QuestionCategory> findByParentId(Integer id);

    //for distinguish questions zcl
    List<QuestionCategory> findByTypeId(int typeId);

}
